<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户登录</title>

    <!-- Bootstrap 核心CSS文件 -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
    <!--font-awesome 核心CSS文件-->
    <link href="https://cdn.bootcss.com/font-awesome/5.13.0/css/all.css" rel="stylesheet">
    
    <!-- 导入自定义样式 -->
    <link rel="stylesheet" href="/stylesheets/login.css">
</head>
<body>
    <!-- action="/login" method="post" enctype="application/x-www-form-urlencoded"  -->
    <div class="container">
        <div class="form row">
            <form 
              id="form_login"
              class="form-horizontal col-sm-offset-3 col-md-offset-3"
            >
                <h3 class="form-title">登录</h3>
                <div class="col-sm-9 col-md-9">
                    <div class="form-group">
                        <i class="fas fa-envelope" aria-hidden="true"></i>
                        <input 
                          class="form-control" 
                          type="text" 
                          name="email" 
                          id="email" 
                          placeholder="请输入邮箱" 
                          required
                        > 
                    </div>
                    <div class="form-group">
                        <i class="fas fa-key" aria-hidden="true"></i>
                        <input class="form-control" type="password" name="password" id="password" placeholder="请输入密码" required>
                    </div>
                    
                    <div class="form-group">
                        <br>
                        <a href="/register">没有账号？前往注册</a>
                    </div>
                    <div class="form-group btn-login">
                        <input type="submit" value="登录" 
                          class="btn btn-success pull-right" 
                        >
                    </div>
                </div>
            </form>
            
        </div>
    </div>

    <!-- 导入 Layui 的JS文件 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.min.js"></script>
    <!-- 在bootstrap.min.js 之前引入 jquery -->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
    <!-- Bootstrap 核心js文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
    <!-- 导入自己封装的 baseAPI -->
    <script src="/javascripts/baseApi.js"></script>
    <!-- 导入login.js -->
    <script src="/javascripts/login.js"></script>
</body>
</html>